*{
    padding: 0;
    margin: 0;
}
div{
    position: absolute;
    top:50%;
    left:50%;
    margin-top:-250px;
    margin-left:-250px;
}